# [3,5,8,7,2,0] 求列表最大值
a=0
z=[3,5,8,7,2,0]
x=z[0]
while a<len(z):
    if z[a]>x:
        x=z[a]
    a+=1
print(x)